package org.leaf.green.b2b

import grails.converters.JSON

class MarketResearchAjaxController {

    def marketResearchAjaxService

    //获取市场列表
    def marketInstanceList = {
        render marketResearchAjaxService.marketInstanceList(params.term) as JSON
    }

    //获取市场区域列表
    def regionInstanceList = {
        render marketResearchAjaxService.regionInstanceList(params.term) as JSON
    }

    //门店列表
    def retailerInstanceList = {
        render marketResearchAjaxService.retailerInstanceList(params.term) as JSON 
    }

    //获取最新采购价格
    def lastPurchasePrice = {
        render marketResearchAjaxService.lastPurchasePrice(params.product)
    }

    //今天调查价格
    def todayResearchPrice = {
        render marketResearchAjaxService.todayResearchPrice(params.product) as JSON
    }

}
